
<template>
<input type="text" v-model="firstNawe" placeholder="财从八方来">
<input type="text" v-model="lastName" placeholder="狼佬">
</template>
<script>
import { ref,compile } from 'vue';

const firstNawe = ref('')
const lastName = ref('')

const Name = compile({

    get(){
        return firstNawe.value + lastName.value
    }
})
console.log(Name);

</script>